<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.




 */
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.controller');

class lrControllerSampledata extends lrController
{
	function __construct()
	{
		parent::__construct();
	}
 	
	function load()
	{
		//get model
		$model 	= $this->getModel('sampledata');

		if (!$model->loaddata()) {
			$msg 	= JText::_( 'SAMPLEDATA FAILED' );
		} else {
			$msg 	= JText::_( 'SAMPLEDATA SUCCESSFULL' );
		}
		
		$link 	= 'index.php?option=com_lr';
		
		$this->setRedirect($link, $msg);
 	}
}
?>